package org.xinghai.sql.dialogue.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.xinghai.sql.dialogue.generator.domain.ChatHistory;
import org.xinghai.sql.dialogue.generator.service.ChatHistoryService;
import org.xinghai.sql.dialogue.generator.mapper.ChatHistoryMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lijia
* @description 针对表【chat_history】的数据库操作Service实现
* @createDate 2025-08-01 17:02:12
*/
@Service
public class ChatHistoryServiceImpl extends ServiceImpl<ChatHistoryMapper, ChatHistory>
    implements ChatHistoryService{

    @Override
    public List<ChatHistory> listByConvId(String convId) {
        return baseMapper.selectList(new LambdaQueryWrapper<ChatHistory>().eq(ChatHistory::getConvId, convId));
    }
}




